import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

// 导入vant组件
import {
  Card,
  Tabbar,
  TabbarItem,
  Swipe,
  SwipeItem,
  Toast,
  GoodsAction,
  GoodsActionIcon,
  GoodsActionButton,
  Sku,
  Checkbox,
  Stepper,
  SwipeCell,
  Button,
  SubmitBar,
  Divider
} from 'vant';
Vue.use(Card).use(Tabbar).use(TabbarItem).use(Swipe).use(SwipeItem)
  .use(Toast).use(GoodsAction).use(GoodsActionIcon).use(GoodsActionButton)
  .use(Sku).use(Checkbox).use(Stepper).use(SwipeCell).use(Button).use(SubmitBar).use(Divider)

// 导入rem适配文件lib-flexible
import 'lib-flexible'

// 导入项目公共样式
import './common/style/base.scss'

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
